using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FEL.INT;
using FEL.META;
using System.Text;
using System.Collections.Generic;
using System.Web.Services;
using System.Reflection;

public partial class INT_INT_PERIODO : PaginaBaseKCG
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.Page_Load(sender, e);
        cargarBotones();
        fvInt_Periodo.DataBound += new EventHandler(fvInt_Periodo_DataBound);
    }

    private void cargarBotones()
    {
        btnSubPeriodo.Text = GetLocalResourceObject("Btn_Int_Periodo_SubperiodoRecursoKCG.Text").ToString();
        btnSubPeriodo.ToolTip = GetLocalResourceObject("Btn_Int_Periodo_SubperiodoRecursoKCG.ToolTip").ToString();
    }
    void fvInt_Periodo_DataBound(object sender, EventArgs e)
    {
        DeshabilitraBotonesEnInsert();
    }
    private void DeshabilitraBotonesEnInsert()
    {
        if (Fv.CurrentMode == FormViewMode.Insert)
        {
            btnSubPeriodo.Enabled = false;
        }
        else
            btnSubPeriodo.Enabled = true;
    }
    protected override CheckBox CbInsertarMemoria
    {
        get { return null; }
    }

    protected override Type TipoObjeto
    {
        get { return typeof(global::Int_Periodo); }
    }

    protected override GridView Gv
    {
        get { return gvInt_periodo; }
    }

    protected override FormView Fv
    {
        get { return fvInt_Periodo; }
    }

    protected override ObjectDataSource OdsGv
    {
        get { return odsgvInt_periodo; }
    }

    protected override ObjectDataSource OdsDv
    {
        get { return odsfvInt_Periodo; }
    }

    protected override Button BResponderZoom
    {
        get { return Seleccionar; }
    }

    protected override Button BRegreso
    {
        get { return Atras; }
    }


    protected override Koala.KoalaWebControls.KFiltro KftFiltro
    {
        get { return kftFiltro; }
    }
    protected override string Contenedor
    {
        get { return "INT_PERIODO"; }
    }

    protected void nav_Siguiente(object sender, EventArgs e)
    {
        Gv_SelectedIndexChanged(sender, e);
    }


    protected void btnSubPeriodo_Click(object sender, EventArgs e)
    {
        TextBox IntPeriodoId = (TextBox)Fv.FindControl("Id");
        Response.Redirect("~/INT/INT_SUBPERIODO.aspx?Int_Periodo_Id=" + IntPeriodoId.Text);

    }


}
